package _22作业.File类;

import java.io.File;

public class T3 {
    public static void main(String[] args) {
        File file = new File("D:\\黑马java培训班\\代码\\itcast\\JavaSE\\day10\\abd");
        File[] files = file.listFiles();
        for (File f : files) {
            if (f.isFile()){
                System.out.println("文件,path="+f.getAbsolutePath());
            }
            if (f.isDirectory()){
                System.out.println("目录,path="+f.getAbsolutePath());
            }


        }
    }
}
